import request from "@/utils/request";
import $qs from "qs";

//  获取话费设置
export function getPhoneSetting(params) {
  return request({
    url: "/getPhoneSetting",
    method: "post",
    data: $qs.stringify(params)
  });
}

//  保存话费设置
export function savePhoneSetting(params) {
  return request({
    url: "/savePhoneSetting",
    method: "post",
    data: $qs.stringify(params)
  });
}

//  话费列表
export function phoneOrderLists(params) {
  return request({
    url: "/phoneOrderLists",
    method: "post",
    data: $qs.stringify(params)
  });
}

//  推广
export function phoneSpread(params) {
  return request({
    url: "/phoneSpread",
    method: "post",
    data: $qs.stringify(params)
  });
}

//  话费退款
export function phoneOrderRefund(params) {
  return request({
    url: "/phoneOrderRefund",
    method: "post",
    data: $qs.stringify(params)
  });
}
export function phoneOrderStatus(params) {
  return request({
    url: "/phoneOrderStatus",
    method: "post",
    data: $qs.stringify(params)
  });
}